package com.example.demo.mapper;

import com.example.demo.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzz
 * @since 2023-09-23
 */
public interface MenuMapper extends BaseMapper<Menu> {
    @Select("select * from sys_menu where pid in (select pid from sys_menu where id = #{id})")
    List<Menu> getDataById(String id);


}
